import http from "../axios/axios";

// 获取角色列表
export function _getRoleList (query = {}) {
  return http.request({
    url: `/yuezhan/roles`,
    method: 'get',
  })
}

// 删除角色
export function _deleteRoleList (query = {}) {
  return http.request({
    url: `/yuezhan/roles/${query}`,
    method: 'delete',
  })
}
// 修改角色对应的权限
export function _patchRoleList (query) {
  return http.request({
    url: `/yuezhan/roles/${query.id}`,
    method: 'PATCH',
    data: query.data
  })
}